

import {
	get,
	post,
	Delete
} from 'utils/requests'

/* 公司发布需求 */
// export const releaseDemand = () => {
// 	return post({
// 		url: '/corpDemand/releaseDemand',
// 		data: {},
// 		json: "json",
// 	})
// }

/* 农户发布需求 */
export const releaseDemand = (data) => {
	return post({
		url: '/applet/index/release/releaseDemand',
		data,
		json: "json",
	})
}


/* 修改需求信息 */
export const modifyDemandInfo = () => {
	return post({
		url: '/corpDemand/modifyDemandInfo',
		data: {},
		json: "json",
	})
}

/* 获取需求列表 */
export const getDemandPageByEs = (pageNo, pageSize) => get({
	url: "/applet/demand/getDemandPageByEs",
	data: {
		pageNo,
		pageSize
	}
})


/* 获取需求详细信息 */
export const getDemandInfo = (type,id) => get({
	url: `/applet/index/details/getDemandInfoById/${type}/${id}`,
})